<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Demo</title>
  <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
  <link href="css/layui.css" rel="stylesheet">
</head>
<body>
<pre class="layui-code code-demo" lay-options="{}">
light theme
light theme
light theme
</pre>
<hr>
<pre class="layui-code code-demo" lay-options="{theme: 'dark'}">
def main():
    print('hello world')
</pre>

<!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
<script src="layui.js"></script>
<script>
layui.use(function(){
  // code
  layui.code({
    elem: '.code-demo'
  });
})
</script>

</body>
</html>